package com.sy.blog.service;

import com.sy.blog.vo.Result;
import com.sy.blog.vo.params.ArticleParams;
import com.sy.blog.vo.params.PageParams;

public interface ArticleService {

    /**
     * 首页文章显示
     * @param params
     * @return
     */
    Result listArticle(PageParams params);

    Result listLatestArticle(int limit);

    Result listHotArticle(int limit);

    /**
     * 查出文章归档的数据
     * @return
     */
    Result listArchives();

    /**
     * 查询文章的详情
     * @return
     */
    Result findArticleById(Long id);

    /**
     * 文章发布
     * @return
     */
    Result publish(ArticleParams articleParams);
}
